﻿package plugin.roleN.handler
{
    import com.core.*;
    import flash.utils.*;
    import plugin.roleN.model.*;
    import pluginfw.nio.*;
    import pluginfw.nio.imsg.*;

    public class FlyHandler extends Object implements IGroupHandler
    {

        public function FlyHandler()
        {
            return;
        }// end function

        public function dealSimpleMessage(param1:ISimpleMessage) : void
        {
            return;
        }// end function

        public function dealBufferMessage(param1:IBufferMessage) : void
        {
            var _loc_2:Object = null;
            var _loc_3:Input = null;
            var _loc_4:ByteArray = null;
            var _loc_5:Object = null;
            var _loc_6:Input = null;
            var _loc_7:ByteArray = null;
            switch(param1.getCmd())
            {
                case CMDFly.LFY_LV:
                {
                    _loc_2 = new Object();
                    _loc_3 = new Input(null);
                    _loc_4 = param1.getBody();
                    _loc_4.position = 0;
                    _loc_3.setBytes(_loc_4);
                    _loc_2.fslevel = _loc_3.readVarInt(false);
                    ModelProxy.change("feishen", "init", _loc_2);
                    break;
                }
                case CMDFly.LFY_GetEXP:
                {
                    break;
                }
                case CMDFly.ResFlyup:
                {
                    _loc_5 = new Object();
                    _loc_6 = new Input(null);
                    _loc_7 = param1.getBody();
                    _loc_7.position = 0;
                    _loc_6.setBytes(_loc_7);
                    _loc_5.fslevel = _loc_6.readVarInt(false);
                    ModelProxy.change("feishen", "init", _loc_5);
                    ModelProxy.change("feishen", "playMC", null);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

        public function dealProxyMessage(param1:IProxyMessage) : void
        {
            return;
        }// end function

    }
}
